<template>
<div>
    <h1>修改宠物信息</h1>
<el-form ref="form" :model="form" label-width="80px" :inline="true" >


<el-row>
  <e-col :span="12">
  <el-form-item label="名字:"> 
  <el-input v-model="form.name"></el-input>
  </el-form-item>
  </e-col>

<e-col :span="12">
<el-form-item label="品类:"> 
  <el-input v-model="form.name"></el-input>
</el-form-item>
</e-col>

</el-row>


<el-row>
  <e-col :span="12">
  <el-form-item label="颜色:"> 
  <el-input v-model="form.name"></el-input>
  </el-form-item>
  </e-col>
<e-col :span="12">
<el-form-item label="种类:"> 
<el-input v-model="form.name"></el-input>
</el-form-item>
</e-col>
</el-row>

<el-row>
  <e-col :span="12">
  <el-form-item label="性格:"> 
  <el-input v-model="form.name"></el-input>
  </el-form-item>
  </e-col>
  <e-col :span="12">
  <el-form-item label="出生日期:" style="margin-right: -20px;" > 
  <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 80%;"></el-date-picker> 
  </el-form-item>
  </e-col>
  </el-row>
  <div>
    <el-button type="primary" @click="onSubmit">修改</el-button>
    <el-button type="primary" @click="onSubmit">返回</el-button>
  </div>


</el-form>


</div>
</template>
<script>
  export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      },

    }
  }
</script>
